package com.cjh.wechat.core.service;
import java.util.List;
import com.cjh.wechat.commom.pojo.Group;
import com.cjh.wechat.commom.vo.GroupSearchCondition;
import com.cjh.wechat.commom.vo.MineVo;
import com.cjh.wechat.commom.vo.ResponseVo;
import com.cjh.wechat.commom.vo.SearchGroupResultVo;
import com.cjh.wechat.commom.vo.ShowGroupMemberVo;

public interface GroupService
{
    public ShowGroupMemberVo showGroupMember(String id, String groupId);
    
    public ResponseVo findByGid(String gid);
    
    public List<MineVo> findBy(String gid);
    
    public List<Group> findByUid(String uid);
    
    public List<SearchGroupResultVo> search(GroupSearchCondition condition, int pageNum, int pageSize, String id);
    
    public int getSearchNum(GroupSearchCondition condition);
    
    public Group getByGid(String gid);
    
    public void delGroup(String gid) throws Exception;
    
    public void delMember(String uid, String gid) throws Exception;
    
    public void quitGroup(String uid, String gid) throws Exception;
    
    public String addGroup(String uid, String name) throws Exception;
    
    public void agreeInvite(Integer no, String gid);
    
    public void refuseInvite(Integer no, String gid);
}
